import 'package:enterprise_v6_app/generated/json/base/json_convert_content.dart';
import 'package:enterprise_v6_app/app/data/entities/application/standardiztion/standard_risk_inspect_notify_entity.dart';

StandardRiskInspectNotifyEntity $StandardRiskInspectNotifyEntityFromJson(Map<String, dynamic> json) {
  final StandardRiskInspectNotifyEntity standardRiskInspectNotifyEntity = StandardRiskInspectNotifyEntity();
  final String? companyCode = jsonConvert.convert<String>(json['companyCode']);
  if (companyCode != null) {
    standardRiskInspectNotifyEntity.companyCode = companyCode;
  }
  final String? createBy = jsonConvert.convert<String>(json['createBy']);
  if (createBy != null) {
    standardRiskInspectNotifyEntity.createBy = createBy;
  }
  final String? createById = jsonConvert.convert<String>(json['createById']);
  if (createById != null) {
    standardRiskInspectNotifyEntity.createById = createById;
  }
  final String? createDate = jsonConvert.convert<String>(json['createDate']);
  if (createDate != null) {
    standardRiskInspectNotifyEntity.createDate = createDate;
  }
  final String? deleted = jsonConvert.convert<String>(json['deleted']);
  if (deleted != null) {
    standardRiskInspectNotifyEntity.deleted = deleted;
  }
  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    standardRiskInspectNotifyEntity.id = id;
  }
  final String? notificationContent = jsonConvert.convert<String>(json['notificationContent']);
  if (notificationContent != null) {
    standardRiskInspectNotifyEntity.notificationContent = notificationContent;
  }
  final String? reportDate = jsonConvert.convert<String>(json['reportDate']);
  if (reportDate != null) {
    standardRiskInspectNotifyEntity.reportDate = reportDate;
  }
  final String? reportTarget = jsonConvert.convert<String>(json['reportTarget']);
  if (reportTarget != null) {
    standardRiskInspectNotifyEntity.reportTarget = reportTarget;
  }
  final String? updateBy = jsonConvert.convert<String>(json['updateBy']);
  if (updateBy != null) {
    standardRiskInspectNotifyEntity.updateBy = updateBy;
  }
  final String? updateById = jsonConvert.convert<String>(json['updateById']);
  if (updateById != null) {
    standardRiskInspectNotifyEntity.updateById = updateById;
  }
  final String? updateDate = jsonConvert.convert<String>(json['updateDate']);
  if (updateDate != null) {
    standardRiskInspectNotifyEntity.updateDate = updateDate;
  }
  return standardRiskInspectNotifyEntity;
}

Map<String, dynamic> $StandardRiskInspectNotifyEntityToJson(StandardRiskInspectNotifyEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['companyCode'] = entity.companyCode;
  data['createBy'] = entity.createBy;
  data['createById'] = entity.createById;
  data['createDate'] = entity.createDate;
  data['deleted'] = entity.deleted;
  data['id'] = entity.id;
  data['notificationContent'] = entity.notificationContent;
  data['reportDate'] = entity.reportDate;
  data['reportTarget'] = entity.reportTarget;
  data['updateBy'] = entity.updateBy;
  data['updateById'] = entity.updateById;
  data['updateDate'] = entity.updateDate;
  return data;
}

extension StandardRiskInspectNotifyEntityExtension on StandardRiskInspectNotifyEntity {
  StandardRiskInspectNotifyEntity copyWith({
    String? companyCode,
    String? createBy,
    String? createById,
    String? createDate,
    String? deleted,
    String? id,
    String? notificationContent,
    String? reportDate,
    String? reportTarget,
    String? updateBy,
    String? updateById,
    String? updateDate,
  }) {
    return StandardRiskInspectNotifyEntity()
      ..companyCode = companyCode ?? this.companyCode
      ..createBy = createBy ?? this.createBy
      ..createById = createById ?? this.createById
      ..createDate = createDate ?? this.createDate
      ..deleted = deleted ?? this.deleted
      ..id = id ?? this.id
      ..notificationContent = notificationContent ?? this.notificationContent
      ..reportDate = reportDate ?? this.reportDate
      ..reportTarget = reportTarget ?? this.reportTarget
      ..updateBy = updateBy ?? this.updateBy
      ..updateById = updateById ?? this.updateById
      ..updateDate = updateDate ?? this.updateDate;
  }
}
